package com.roadjava.rbac.util;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roadjava.rbac.bean.req.BasePageReq;


public class PageUtil {
    /**
     * 构建IPage类型的对象
     */
    public static <T> IPage<T> buildPage(BasePageReq pageReq) {
        return new Page<>(pageReq.getPageNow(),pageReq.getPageSize());
    }
}
